home *** CD-ROM | disk | FTP | other *** search
-
- AIBehaviour.GLeader = {
- Name = "GLeader",
- pathname = "",
-
- -- SYSTEM EVENTS -----
- ---------------------------------------------
- OnSelected = function(self,entity )
- end,
- ---------------------------------------------
- OnSpawn = function(self,entity )
- entity:SelectPipe(0,"securearea");
- end,
- ---------------------------------------------
- OnActivate = function(self,entity )
- end,
- ---------------------------------------------
- OnNoTarget = function(self, entity )
- end,
- ---------------------------------------------
- OnPlayerSeen = function( self,entity )
- end,
- ---------------------------------------------
- OnPlayerMemory = function( self,entity )
- end,
- ---------------------------------------------
- OnEnemySeen = function(self,entity )
- end,
- ---------------------------------------------
- OnEnemyMemory = function(self,entity )
- end,
- ---------------------------------------------
- OnDeadFriendSeen = function(self,entity )
- end,
- ---------------------------------------------
- OnDeadEnemySeen = function(self,entity )
- end,
- ---------------------------------------------
- OnInterestingSoundHeard = function(self,entity )
- end,
- ---------------------------------------------
- OnThreateningSoundHeard = function(self, entity )
- end,
- ---------------------------------------------
- OnGunfireHeard = function(self,entity )
- end,
- ---------------------------------------------
- OnFootstepsHeard = function( self,entity )
- end,
- ---------------------------------------------
- OnGranateSeen = function(self, entity )
- end,
- ---------------------------------------------
- OnLongTimeNoTarget = function( self,entity )
- end,
- ---------------------------------------------
- OnGroupMemberDied = function(self, entity )
- end,
- ---------------------------------------------
- OnNoNearerHidingPlace = function(self, entity , sender)
- end,
- ---------------------------------------------
- OnNoHidingPlace = function(self, entity, sender )
- end,
- ---------------------------------------------
- OnReceivingDamage = function (self,entity, sender)
- end,
- ---------------------------------------------
- OnReload = function (self,entity, sender)
- end,
- ---------------------------------------------
-
- OnEnemyContact = function (self,entity, sender)
- if (entity ~= sender) then
- local target = AI:GetAttentionTargetOf(sender.id);
- if (target~=nil) then
- Game:ShowIngameDialog(-1, "", "", 12, entity:GetName()..": Pin him down "..sender:GetName().."! Everyone else scramble for cover!", 4);
- entity:SelectPipe(0,"hide_from",target.id);
- end
- end
- end,
- ---------------------------------------------
-
- }